package hy.demo1.impl;

import hy.demo1.Performer;

public class Ms implements Performer {
    String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    {
        System.out.println("马苏出生了。。。");
        name="abc";
    }

    @Override
    public void perform() {
        System.out.println("马苏开始跳舞....");
    }

    public void toUpperCase(){
        System.out.println("初始化方法。。。。");
        name=name.toUpperCase();
    }

    public void gameOver(){
        System.out.println("gameOver....");
    }
}
